money = 5000000
name = None

def search():
    print("-----------------MONEY INQUERING--------------")
    print(money)
def save(amount):
    print("-----------------MONEY SAVING-----------------")
    global money
    money += amount
    print("Success!")
def withdraw(amount):
    print("-----------------MONEY WITHDRAWING------------")
    global money
    money -= amount
    print("Success!")

def main():
    print("-----------------MAIN LOBBY-------------------")
    print(f"Hi!{name}")
    print("MONEY INQUERING\t\t\t\t : 1")
    print("MONEY SAVING\t\t\t\t : 2")
    print("MONEY WITHDRAWING\t\t\t : 3")
    print("EXIT\t\t\t\t\t\t : 4")
    return input("Input your choice : ... ... ")



name = input("Welcome to BD ATM! Please enter your name:")
while True:
    keyboard_input = main()
    if keyboard_input == "1":
        search()
        continue
    if keyboard_input == "2":
        save(int(input("Please enter the amount of money you want to save: ... ...")))
        continue
    if keyboard_input == "3":
        withdraw(int(input("Please enter the amount of money you want to withdraw: ... ...")))
        continue
    if keyboard_input == "4":
        break